home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 26.zip
/
BS1 part 26
/
Powervisor v1.10b disk1.adf
/
s
/
pv
/
ikey
< prev
next >
Wrap
Text File
|
1991-09-15
|
1KB
|
31 lines
;Some useful routines
;Each feature described in this script file can work seperatelly, simply
;delete the other lines.
;Note that some of these features are already installed in
;'s/PowerVisor-startup'
;Install a routine so that PowerVisor restores the history line whenever
;the command is preceded with a '&'. This is useful when you want to
;execute a command a few times.
pv 6 'v if(*{pv 12}.b==38,{*{pv 12}.b=32;*({pv 40}+5).b=1},0)'
pv 16 'v if(*({pv 40}+5).b==1,{*{pv 12}.b=38},0)'
;Redefine the arrow up and arrow down for history.
;The cursor goes to the end of the stringgadget line each time you press
;arrow up or down.
attach 'pv 15 30000' 04c 0 inv
attach 'pv 15 30000' 04d 0 inv
;Beep if user snaps something
pv 22 '{pv 24 600 20;v 1}'
;Delete the current history line with right-alt delete
attach '{pv 26 \({pv 12},%s);pv 4;pv 5}' 046 32 inv
;Assign the Right-shift up key to a searchhistory macro
;Assign the Left-shift up key to the same macro
_a={-resident s:pv/SearchHist}
attach 'go \(_a)' 04c 2 inv
attach 'go \(_a)' 04c 1 inv
remvar _a